package com.demo.controller;

import com.demo.service.TestService;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;

import java.util.List;

@Controller
public class TestController {
    @Inject
    TestService testService;

    @Mapping("2")
    public List test2() {
        return testService.query2();
    }

    @Mapping("3")
    public List test3() {
        return testService.query3();
    }

}
